//
//  LCTravelCollectionViewCell.m
//  lechuang
//
//  Created by Mr_hi on 2023/6/6.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import "LCTravelCollectionViewCell.h"
#import "LCTravelModel.h"

@interface LCTravelCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *strthumbView;

@property (weak, nonatomic) IBOutlet UILabel *strtitleLb;

@property (weak, nonatomic) IBOutlet UILabel *priceLb;

@property (weak, nonatomic) IBOutlet UILabel *voucherLb;

@end

@implementation LCTravelCollectionViewCell

-(void)setTravel:(LCTravelModel *)travel {
    _travel = travel;
    [self.strthumbView sd_setImageWithURL:[LCFunction XWX_URLImg:travel.tripthumb]];
    self.strtitleLb.text = travel.triptitle;
    self.voucherLb.text = kFORMAT(@"￥%@",travel.marketamount);
    if ([travel.businessamount isEqualToString:@"0"]) {
        self.priceLb.text = kFORMAT(@"%@",travel.systemamount);
    } else {
        self.priceLb.text = kFORMAT(@"%@",travel.businessamount);
    }
}

@end
